﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

using QingzimaScenario;
using QingzimaLogicModel;

namespace QingzimaWebClient.Controllers
{
    public class QiantaiDingdanController : Controller
    {
        //
        // GET: /QiantaiDinggou/

        public ActionResult Index()
        {
            return View();
        }

        [HttpPost]
        [ValidateInput(false)]
        public ActionResult Index(DingdanLM DingdanLM)
        {
            if (string.IsNullOrEmpty(Request.Form.Get("HtmlTextArea")))
            {
                ViewBag.State = "请输入信息";
            }
            else
            {
                DingdanLM.Neirong = Request.Form.Get("HtmlTextArea");

                DingdanScenario.Tianjia(DingdanLM);
                return RedirectToAction("../QiantaiShouye");
            }
            return View();
        }
    }
}
